from sys import stderr, __stderr__
from os import getcwd
from os.path import join
from generator import list_write, list_read, dict_read, dict_write



path_error = join(getcwd(), "dict_update.err")
stderr = open(path_error, 'a')


print('Будет обновлена таблица номеров в Mysql и xlsx')

list_write(list_read())
dict_write(dict_read())

stderr.close()
stderr = __stderr__